

.login-container {
  /* 针对可能的 body 和 html 限制，强制高度 */
  position: relative;
  z-index: 0;
.error{
  color: red;
}
  form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 400px;

    h2 {
      text-align: center;
      margin-bottom: 1.5rem;
      color: #333;
    }

    .ant-form-item {
      margin-bottom: 1rem;

      label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #555;
      }

      .ant-input,
      .ant-input-password {
        //   width: 100%;
        //   height: 40px;
        //   font-size: 16px;
        //   padding: 8px 12px;
        box-sizing: border-box;
        line-height: 24px;
      }
    }

    .button-container {
      display: flex;
      justify-content: center;
      align-items: center;

      button {
        flex: 1;
        margin: 0 0.5rem;
        height: 45px;
        //   font-size: 17px;
        color: #333;
        transition: background-color 0.3s ease;
        &:hover {
          background-color: #ffcc00;
        }
      }
    }

    .forgot-password-link {
      margin-top: 2rem;
      display: block;
      text-align: left;
      color: #ADD8E6;
      text-decoration: none;
      &:hover {
        color: red;
        text-decoration: underline;
      }
    }
  }
}
